<template>
  <div class="order">
    <div class="title">
      <span>饿了么</span>
    </div>
    <div class="qb">
      <span v-for="(item, index) in qbArr" :key="index">{{ item }}</span>
    </div>
    <div class="shop" v-for="(item, index) in shopArr" :key="index">
      <div class="name">{{ item.name }}</div>
      <div class="img">
        <img src="" alt="" />
        <img src="" alt="" />
        <span class="price">￥{{ item.price }}</span>
      </div>
      <div class="zl">
        <span>再来一单</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      qbArr: ["全部", "待消费", "待评价", "退款"],
      shopArr: [
        { name: "纯手工饺子", price: 17.8 },
        { name: "唐久便利", price: 18.3 },
        { name: "美益水果", price: 28.89 },
      ],
    };
  },
};
</script>

<style lang='scss' scoped>
.order {
  background: #f5f5f5;
  padding: 10px;
}
.order .title {
  text-align: center;
  height: 40px;
  line-height: 40px;
  font-size: 20px;
  font-weight: bolder;
}
.order .qb {
  padding-top: 20px;
}
.order .qb span {
  margin-right: 20px;
}
.order .shop {
  height: 160px;
  background: white;
  margin-top: 10px;
  border-radius: 5px;
}
.order .shop .name {
  padding: 10px;
  font-size: 18px;
  font-weight: bold;
}
.order .shop img {
  width: 60px;
  height: 60px;
  border: 1px solid black;
  border-radius: 5px;
  margin-right: 5px;
}
.order .shop span {
  float: right;
  margin-right: 10px;
}
.order .shop .zl span {
  border: 1px solid skyblue;
  padding: 8px;
  color: rgb(22, 131, 173);
  border-radius: 50px;
  font-size: 14px;
}
</style>